﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Model.Object
{
    public class HinhAnh
    {
        [Key]
        public int ID { get; set; }

        [Display(Name="Tên")]
        public string Ten { get; set; }
        
        public string ImagePath { get; set; }

        public int ID_SanPham { get; set; }
        [ForeignKey("ID_SanPham")]
        public virtual SanPham SanPham { get; set; }

        public int ID_LoaiHinhAnh { get; set; }
        [ForeignKey("ID_LoaiHinhAnh")]
        public virtual LoaiHinhAnh LoaiHinhAnh { get; set; }
    }
}
